package com.spm.librarianmanagersystem.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.spm.librarianmanagersystem.pojo.Borrow;
import com.spm.librarianmanagersystem.vo.borrowDetail;

import java.util.Map;

public interface BorrowService {
    Integer borrowBook(String currentUserId, JSONObject borrowRequest) throws Exception;
    JSONArray getBorrowingList(String currentUserId);
    JSONArray getBorrowHistory(String currentUserId);
    JSONObject getBorrowRecordDetail(Integer borrowingId);
    Boolean updateScore(Integer borrowingId, Double score);
}
